/*
**  btmrc.h - header for resources
**  Copyright (C) 1997,1998 Joachim Ott <ott@ardala.han.de>
**
**  This program is free software; you can redistribute it and/or modify
**  it under the terms of the GNU General Public License as published by
**  the Free Software Foundation; either version 2 of the License, or
**  (at your option) any later version.
**
**  This program is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**  GNU General Public License for more details.
**
**  You should have received a copy of the GNU General Public License
**  along with this program; if not, write to the Free Software
**  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#ifndef h_btmrc
#define h_btmrc

/*-----------------------------------------------------------------------*/

// Identifier fuer die Dialog-Items

#define LB_ERG			51

// Ergebnis eines Spiels eingeben

#define DLG_SPI			200
#define DLG_SPI_S		201
#define DLG_SPI_S0		202
#define DLG_SPI_S1		203
#define DLG_SPI_S2		204
#define DLG_SPI_S3		205
#define DLG_SPI_SP		211
#define DLG_SPI_TH		212
#define DLG_SPI_TT		213
#define DLG_SPI_TA		214
#define DLG_SPI_END		298
#define DLG_SPI_ABR		299

// Tip- und Nulltip-Liste

#define DLG_TIP			300
#define DLG_TIP_TIP		301
#define DLG_TIP_PB_Z		302
#define DLG_TIP_EDT		303
#define DLG_TIP_PB_S		304
#define DLG_TIP_PB_END		399

// Anzeige eines Teilnehmertips

#define DLG_TAZ			400
#define DLG_TAZ_LB		401
#define DLG_TAZ_END		409

// Anzeige Mittelwerte

#define DLG_MIT			420
#define DLG_MIT_LB		421
#define DLG_MIT_END		429

// neuen Spieltag eingeben

#define DLG_NEU			500
#define DLG_NEU_DV		501
#define DLG_NEU_DVB		502
#define DLG_NEU_DB		503
#define DLG_NEU_DBB		504
#define DLG_NEU_P1U		511
#define DLG_NEU_P2U		512
#define DLG_NEU_P3U		513
#define DLG_NEU_P4U		514
#define DLG_NEU_P5U		515
#define DLG_NEU_P6U		516
#define DLG_NEU_P7U		517
#define DLG_NEU_P8U		518
#define DLG_NEU_P9U		519
#define DLG_NEU_P1D		521
#define DLG_NEU_P2D		522
#define DLG_NEU_P3D		523
#define DLG_NEU_P4D		524
#define DLG_NEU_P5D		525
#define DLG_NEU_P6D		526
#define DLG_NEU_P7D		527
#define DLG_NEU_P8D		528
#define DLG_NEU_P9D		529
#define DLG_NEU_P11		531     // Spielpaarungen
#define DLG_NEU_P12		532
#define DLG_NEU_P21		533
#define DLG_NEU_P22		534
#define DLG_NEU_P31		535
#define DLG_NEU_P32		536
#define DLG_NEU_P41		537
#define DLG_NEU_P42		538
#define DLG_NEU_P51		539
#define DLG_NEU_P52		540
#define DLG_NEU_P61		541
#define DLG_NEU_P62		542
#define DLG_NEU_P71		543
#define DLG_NEU_P72		544
#define DLG_NEU_P81		545
#define DLG_NEU_P82		546
#define DLG_NEU_P91		547
#define DLG_NEU_P92		548
#define DLG_NEU_D1		551     // Datum je Spielpaarung
#define DLG_NEU_D2		552
#define DLG_NEU_D3		553
#define DLG_NEU_D4		554
#define DLG_NEU_D5		555
#define DLG_NEU_D6		556
#define DLG_NEU_D7		557
#define DLG_NEU_D8		558
#define DLG_NEU_D9		559
#define DLG_NEU_FR		561
#define DLG_NEU_ABR		598
#define DLG_NEU_END		599

#define DLG_DAT			600	// Datum aendern
#define DLG_DAT_DAT		601
#define DLG_DAT_DPL		611
#define DLG_DAT_DMI		612
#define DLG_DAT_MPL		613
#define DLG_DAT_MMI		614
#define DLG_DAT_JPL		615
#define DLG_DAT_JMI		616

#define DLG_DAT_ABR		698
#define DLG_DAT_END		699

#define GOTO_ST			701

#define SETCOL			801
#define COLEDT_R		811
#define COLEDT_G		812
#define COLEDT_B		813

#define ST_EDIT			6001

#define BTM_MENU		1000

#define M_D_SAVE		1001
#define M_D_OUT_E		1002
#define M_D_OUT_T		1003
#define M_D_OUT_N		1004
#define M_D_OUT_A		1005
#define M_D_OUT_K		1006
#define M_D_OUT_Z		1007
#define M_D_OUT_R		1008
#define M_D_OUT_B		1009
#define M_D_STAT		1011
#define M_D_MSG			1021
#define M_D_END			1099

#define M_S_PREV		1101
#define M_S_NEXT		1102
#define M_S_GOTO		1103
#define M_S_NEW			1104
#define M_S_MOD			1105

#define M_T_TIPS		1201
#define M_T_NULL		1202
#define M_T_MITTEL		1203

#define M_O_TAB			1301
#define M_O_COL_C		1311
#define M_O_COL_Q		1312
#define M_O_COL_U		1313
#define M_O_COL_N		1314
#define M_O_COL_R		1315
#define M_O_COL_A		1316
#define M_O_COL_I		1317
#define M_O_AHEAD		1321

#define M_H_HELP		1901
#define M_H_INFO		1902

#define Y_SIZE			13	// Hoehe fuer buttons, Textzeilen etc
#define Y_MSGBOX		39

#define H_MAX			260
#define H_SIZE			H_MAX - 10

#define H_TOP			20
#define V_TOP			20
#define H_TOP2			H_TOP + 20
#define V_TOP2			V_TOP + 20
#define H_TOP3			H_TOP2 + 20
#define V_TOP3			V_TOP2 + 20

#define H_START			5
#define V_START			5

#define H_DIFF			5
#define V_DIFF			5

#define V_MAX			VS_END + VW_END + V_DIFF + 10

// Anzeige Tips und Nulltips

#define HS_T_TIP		H_START				// Listbox Tip-Rangliste
#define VS_T_TIP		V_START
#define HW_T_TIP		200
#define VW_T_TIP		180

#define HS_T_Z			H_START				// Button Anzeige eines Tips
#define VS_T_Z			VS_T_TIP + VW_T_TIP // + V_DIFF
#define HW_T_Z			80
#define VW_T_Z			Y_SIZE

#define HS_T_EDT		H_START				// Edit suche Tipnamen
#define VS_T_EDT		VS_T_Z + VW_T_Z + V_DIFF 
#define HW_T_EDT		80
#define VW_T_EDT		Y_SIZE

#define HS_T_S			HS_T_EDT + HW_T_EDT + H_DIFF	// Button suche Tipnamen
#define VS_T_S			VS_T_EDT
#define HW_T_S			30
#define VW_T_S			Y_SIZE

#define HS_T_END		H_START				// Button Ende Subwindow
#define VS_T_END		VS_T_EDT + VW_T_EDT + V_DIFF 
#define HW_T_END		30
#define VW_T_END		Y_SIZE

#define H_T_MAX			HW_T_TIP + V_DIFF + V_DIFF + 5
#define V_T_MAX			VS_T_END + VW_T_END + V_DIFF

// Anzeige eines Tips

#define HS_Z_LB			H_START				// Listbox Tipdaten
#define VS_Z_LB			V_START
#define HW_Z_LB			180
#define VW_Z_LB			180

#define HS_Z_END		H_START				// Button Ende Subwindow
#define VS_Z_END		VS_Z_LB + VW_Z_LB + V_DIFF 
#define HW_Z_END		40
#define VW_Z_END		Y_SIZE

#define H_Z_MAX			HW_Z_LB + V_DIFF + V_DIFF + 5
#define V_Z_MAX			VS_Z_END + VW_Z_END + V_DIFF

// Anzeige der Mittelwerte

#define HS_MIT_LB		H_START				// Listbox Mittelwerte
#define VS_MIT_LB		V_START
#define HW_MIT_LB		325
#define VW_MIT_LB		170

#define HS_MIT_END		H_START				// Button Ende Subwindow
#define VS_MIT_END		VS_MIT_LB + VW_MIT_LB + V_DIFF 
#define HW_MIT_END		40
#define VW_MIT_END		Y_SIZE

#define H_MIT_MAX		HW_MIT_LB + V_DIFF + V_DIFF
#define V_MIT_MAX		VS_MIT_END + VW_MIT_END + V_DIFF

// Spieldaten eingeben/aendern

#define HW_S_Sx			35

#define HS_S_S0			H_START + H_START		// 4 Radiobuttons fuer Spielstatus
#define VS_S_S0			V_START + V_START + V_START
#define HW_S_S0			HW_S_Sx
#define VW_S_S0			Y_SIZE

#define HS_S_S1			HS_S_S0 + HW_S_S0 + H_DIFF
#define VS_S_S1			VS_S_S0
#define HW_S_S1			HW_S_Sx
#define VW_S_S1			Y_SIZE

#define HS_S_S2			HS_S_S1 + HW_S_S1 + H_DIFF
#define VS_S_S2			VS_S_S0
#define HW_S_S2			HW_S_Sx
#define VW_S_S2			Y_SIZE

#define HS_S_S3			HS_S_S2 + HW_S_S2 + H_DIFF
#define VS_S_S3			VS_S_S0
#define HW_S_S3			HW_S_Sx
#define VW_S_S3			Y_SIZE

#define HS_S_S			H_START				// Buttongroup fuer die Radiobuttons
#define VS_S_S			V_START
#define HW_S_S			HS_S_S3 + HW_S_S3 + H_START + H_START
#define VW_S_S			VS_S_S0 + VW_S_S0

#define HS_S_SP			H_START				// Static fuer Spielpaarung und Ergebnis
#define VS_S_SP			VS_S_S + VW_S_S + V_DIFF
#define HW_S_SP			HS_S_S3
#define VW_S_SP			Y_SIZE

#define HS_S_TH			HS_S_SP + HW_S_SP + 1		// EditText Tore Heimmannschaft
#define VS_S_TH			VS_S_SP
#define HW_S_TH			15
#define VW_S_TH			Y_SIZE

#define HS_S_TT			HS_S_TH + HW_S_TH + 1		// Static Tore-Trennzeichen
#define VS_S_TT			VS_S_SP
#define HW_S_TT			10
#define VW_S_TT			Y_SIZE

#define HS_S_TA			HS_S_TT + HW_S_TT + 1		// EditText Tore Auswaertsmannschaft
#define VS_S_TA			VS_S_SP
#define HW_S_TA			15
#define VW_S_TA			Y_SIZE

#define HS_S_END		H_START				// Button Ende Subwindow
#define VS_S_END		VS_S_SP + VW_S_SP + V_DIFF 
#define HW_S_END		20
#define VW_S_END		Y_SIZE

#define HS_S_ABR		HS_S_END + HW_S_END + H_DIFF	// Button Eingabe abbrechen
#define VS_S_ABR		VS_S_END 
#define HW_S_ABR		50
#define VW_S_ABR		Y_SIZE

#define H_S_MAX			HS_S_S + HW_S_S + H_DIFF
#define V_S_MAX			VS_S_END + VW_S_END + V_DIFF

// neuen Spieltag eingeben / Spieltag aendern

#define DB_WIDTH		60
#define MN_Y			Y_SIZE
#define NB_Y			Y_SIZE

#define HS_N_DV			H_START				// Text "Datum von"
#define VS_N_DV			V_START
#define HW_N_DV			40
#define VW_N_DV			Y_SIZE

#define HS_N_DVB		HS_N_DV + HW_N_DV + H_DIFF	// Button mit von-Datum
#define VS_N_DVB		VS_N_DV
#define HW_N_DVB		DB_WIDTH
#define VW_N_DVB		NB_Y

#define HS_N_DB			H_START				// Text "Datum bis"
#define VS_N_DB			VS_N_DV + VW_N_DV + V_DIFF
#define HW_N_DB			40
#define VW_N_DB			Y_SIZE

#define HS_N_DBB		HS_N_DB + HW_N_DB + H_DIFF	// Button mit bis-Datum
#define VS_N_DBB		VS_N_DB
#define HW_N_DBB		DB_WIDTH
#define VW_N_DBB		NB_Y

#define HW_MB			60

#define HS_N_P1U		H_START
#define VS_N_P1U		VS_N_DB + VW_N_DB + V_DIFF 
#define HW_N_P1U		6
#define VW_N_P1U		6

#define HS_N_P1D		HS_N_P1U
#define VS_N_P1D		VS_N_P1U + VW_N_P1U + 1 
#define HW_N_P1D		HW_N_P1U
#define VW_N_P1D		VW_N_P1U

#define HS_N_P11		HS_N_P1U + HW_N_P1U + H_DIFF
#define VS_N_P11		VS_N_P1U 
#define HW_N_P11		HW_MB
#define VW_N_P11		MN_Y

#define HS_N_P12		HS_N_P11 + HW_N_P11 + H_DIFF
#define VS_N_P12		VS_N_P11 
#define HW_N_P12		HW_MB
#define VW_N_P12		MN_Y

#define HS_N_D1			HS_N_P12 + HW_N_P12 + H_DIFF
#define VS_N_D1			VS_N_P11 
#define HW_N_D1			DB_WIDTH
#define VW_N_D1			NB_Y

#define HS_N_P2U		H_START
#define VS_N_P2U		VS_N_P11 + VW_N_P11 + V_DIFF
#define HW_N_P2U		HW_N_P1U
#define VW_N_P2U		VW_N_P1U

#define HS_N_P2D		HS_N_P2U
#define VS_N_P2D		VS_N_P2U + VW_N_P2U + 1 
#define HW_N_P2D		HW_N_P1U
#define VW_N_P2D		VW_N_P1U

#define HS_N_P21		HS_N_P11
#define VS_N_P21		VS_N_P11 + VW_N_P11 + V_DIFF 
#define HW_N_P21		HW_MB
#define VW_N_P21		MN_Y

#define HS_N_P22		HS_N_P12
#define VS_N_P22		VS_N_P21 
#define HW_N_P22		HW_MB
#define VW_N_P22		MN_Y

#define HS_N_D2			HS_N_P22 + HW_N_P22 + H_DIFF
#define VS_N_D2			VS_N_P21 
#define HW_N_D2			DB_WIDTH
#define VW_N_D2			NB_Y

#define HS_N_P3U		H_START
#define VS_N_P3U		VS_N_P21 + VW_N_P21 + V_DIFF
#define HW_N_P3U		HW_N_P1U
#define VW_N_P3U		VW_N_P1U

#define HS_N_P3D		HS_N_P3U
#define VS_N_P3D		VS_N_P3U + VW_N_P3U + 1 
#define HW_N_P3D		HW_N_P1U
#define VW_N_P3D		VW_N_P1U

#define HS_N_P31		HS_N_P11
#define VS_N_P31		VS_N_P21 + VW_N_P21 + V_DIFF 
#define HW_N_P31		HW_MB
#define VW_N_P31		MN_Y

#define HS_N_P32		HS_N_P12
#define VS_N_P32		VS_N_P31 
#define HW_N_P32		HW_MB
#define VW_N_P32		MN_Y

#define HS_N_D3			HS_N_P32 + HW_N_P32 + H_DIFF
#define VS_N_D3			VS_N_P31 
#define HW_N_D3			DB_WIDTH
#define VW_N_D3			NB_Y

#define HS_N_P4U		H_START
#define VS_N_P4U		VS_N_P31 + VW_N_P31 + V_DIFF
#define HW_N_P4U		HW_N_P1U
#define VW_N_P4U		VW_N_P1U

#define HS_N_P4D		HS_N_P4U
#define VS_N_P4D		VS_N_P4U + VW_N_P4U + 1 
#define HW_N_P4D		HW_N_P1U
#define VW_N_P4D		VW_N_P1U

#define HS_N_P41		HS_N_P11
#define VS_N_P41		VS_N_P31 + VW_N_P31 + V_DIFF 
#define HW_N_P41		HW_MB
#define VW_N_P41		MN_Y

#define HS_N_P42		HS_N_P12
#define VS_N_P42		VS_N_P41 
#define HW_N_P42		HW_MB
#define VW_N_P42		MN_Y

#define HS_N_D4			HS_N_P42 + HW_N_P42 + H_DIFF
#define VS_N_D4			VS_N_P41 
#define HW_N_D4			DB_WIDTH
#define VW_N_D4			NB_Y

#define HS_N_P5U		H_START
#define VS_N_P5U		VS_N_P41 + VW_N_P41 + V_DIFF
#define HW_N_P5U		HW_N_P1U
#define VW_N_P5U		VW_N_P1U

#define HS_N_P5D		HS_N_P5U
#define VS_N_P5D		VS_N_P5U + VW_N_P5U + 1 
#define HW_N_P5D		HW_N_P1U
#define VW_N_P5D		VW_N_P1U

#define HS_N_P51		HS_N_P11
#define VS_N_P51		VS_N_P41 + VW_N_P41 + V_DIFF 
#define HW_N_P51		HW_MB
#define VW_N_P51		MN_Y

#define HS_N_P52		HS_N_P12
#define VS_N_P52		VS_N_P51 
#define HW_N_P52		HW_MB
#define VW_N_P52		MN_Y

#define HS_N_D5			HS_N_P52 + HW_N_P52 + H_DIFF
#define VS_N_D5			VS_N_P51 
#define HW_N_D5			DB_WIDTH
#define VW_N_D5			NB_Y

#define HS_N_P6U		H_START
#define VS_N_P6U		VS_N_P51 + VW_N_P51 + V_DIFF
#define HW_N_P6U		HW_N_P1U
#define VW_N_P6U		VW_N_P1U

#define HS_N_P6D		HS_N_P6U
#define VS_N_P6D		VS_N_P6U + VW_N_P6U + 1 
#define HW_N_P6D		HW_N_P1U
#define VW_N_P6D		VW_N_P1U

#define HS_N_P61		HS_N_P11
#define VS_N_P61		VS_N_P51 + VW_N_P51 + V_DIFF 
#define HW_N_P61		HW_MB
#define VW_N_P61		MN_Y

#define HS_N_P62		HS_N_P12
#define VS_N_P62		VS_N_P61 
#define HW_N_P62		HW_MB
#define VW_N_P62		MN_Y

#define HS_N_D6			HS_N_P62 + HW_N_P62 + H_DIFF
#define VS_N_D6			VS_N_P61 
#define HW_N_D6			DB_WIDTH
#define VW_N_D6			NB_Y

#define HS_N_P7U		H_START
#define VS_N_P7U		VS_N_P61 + VW_N_P61 + V_DIFF
#define HW_N_P7U		HW_N_P1U
#define VW_N_P7U		VW_N_P1U

#define HS_N_P7D		HS_N_P7U
#define VS_N_P7D		VS_N_P7U + VW_N_P7U + 1 
#define HW_N_P7D		HW_N_P1U
#define VW_N_P7D		VW_N_P1U

#define HS_N_P71		HS_N_P11
#define VS_N_P71		VS_N_P61 + VW_N_P61 + V_DIFF 
#define HW_N_P71		HW_MB
#define VW_N_P71		MN_Y

#define HS_N_P72		HS_N_P12
#define VS_N_P72		VS_N_P71 
#define HW_N_P72		HW_MB
#define VW_N_P72		MN_Y

#define HS_N_D7			HS_N_P72 + HW_N_P72 + H_DIFF
#define VS_N_D7			VS_N_P71 
#define HW_N_D7			DB_WIDTH
#define VW_N_D7			NB_Y

#define HS_N_P8U		H_START
#define VS_N_P8U		VS_N_P71 + VW_N_P71 + V_DIFF
#define HW_N_P8U		HW_N_P1U
#define VW_N_P8U		VW_N_P1U

#define HS_N_P8D		HS_N_P8U
#define VS_N_P8D		VS_N_P8U + VW_N_P8U + 1 
#define HW_N_P8D		HW_N_P1U
#define VW_N_P8D		VW_N_P1U

#define HS_N_P81		HS_N_P11
#define VS_N_P81		VS_N_P71 + VW_N_P71 + V_DIFF 
#define HW_N_P81		HW_MB
#define VW_N_P81		MN_Y

#define HS_N_P82		HS_N_P12
#define VS_N_P82		VS_N_P81 
#define HW_N_P82		HW_MB
#define VW_N_P82		MN_Y

#define HS_N_D8			HS_N_P82 + HW_N_P82 + H_DIFF
#define VS_N_D8			VS_N_P81 
#define HW_N_D8			DB_WIDTH
#define VW_N_D8			NB_Y

#define HS_N_P9U		H_START
#define VS_N_P9U		VS_N_P81 + VW_N_P81 + V_DIFF
#define HW_N_P9U		HW_N_P1U
#define VW_N_P9U		VW_N_P1U

#define HS_N_P9D		HS_N_P9U
#define VS_N_P9D		VS_N_P9U + VW_N_P9U + 1 
#define HW_N_P9D		HW_N_P1U
#define VW_N_P9D		VW_N_P1U

#define HS_N_P91		HS_N_P11
#define VS_N_P91		VS_N_P81 + VW_N_P81 + V_DIFF 
#define HW_N_P91		HW_MB
#define VW_N_P91		MN_Y

#define HS_N_P92		HS_N_P12
#define VS_N_P92		VS_N_P91 
#define HW_N_P92		HW_MB
#define VW_N_P92		MN_Y

#define HS_N_D9			HS_N_P92 + HW_N_P92 + H_DIFF
#define VS_N_D9			VS_N_P91 
#define HW_N_D9			DB_WIDTH
#define VW_N_D9			NB_Y

#define HS_N_FR			HS_N_P11
#define VS_N_FR			VS_N_P91 + VW_N_P91 + V_DIFF 
#define HW_N_FR			HW_MB
#define VW_N_FR			MN_Y

#define HS_N_END		H_START
#define VS_N_END		VS_N_FR + VW_N_FR + V_DIFF 
#define HW_N_END		20
#define VW_N_END		NB_Y

#define HS_N_ABR		HS_N_END + HW_N_END + H_DIFF
#define VS_N_ABR		VS_N_END 
#define HW_N_ABR		45
#define VW_N_ABR		NB_Y

#define H_N_MAX			HS_N_D9 + HW_N_D9 + H_DIFF
#define V_N_MAX			VS_N_END + VW_N_END + V_DIFF

// Datum aendern

#define DT_X			10
#define DT_XJ			15
#define DT_Y			13
#define DT_YH			9

#define HS_D_DAT		H_START
#define VS_D_DAT		V_START
#define HW_D_DAT		DB_WIDTH
#define VW_D_DAT		DT_Y

#define HS_D_DPL		HS_D_DAT + HW_D_DAT + H_DIFF
#define VS_D_DPL		V_START
#define HW_D_DPL		DT_X
#define VW_D_DPL		DT_YH

#define HS_D_DMI		HS_D_DPL + HW_D_DPL + 2
#define VS_D_DMI		VS_D_DPL
#define HW_D_DMI		DT_X
#define VW_D_DMI		DT_YH

#define HS_D_MPL		HS_D_DAT + 25
#define VS_D_MPL		VS_D_DPL + VW_D_DPL + 5
#define HW_D_MPL		DT_X
#define VW_D_MPL		DT_YH

#define HS_D_MMI		HS_D_MPL
#define VS_D_MMI		VS_D_MPL + VW_D_MPL + 2
#define HW_D_MMI		DT_X
#define VW_D_MMI		DT_YH

#define HS_D_JPL		HS_D_MPL + HW_D_MPL + 5
#define VS_D_JPL		VS_D_MPL
#define HW_D_JPL		DT_XJ
#define VW_D_JPL		DT_YH

#define HS_D_JMI		HS_D_JPL
#define VS_D_JMI		VS_D_MMI
#define HW_D_JMI		HW_D_JPL
#define VW_D_JMI		DT_YH

#define HS_D_END		H_START
#define VS_D_END		VS_D_MMI + VW_D_MMI + V_DIFF 
#define HW_D_END		15
#define VW_D_END		NB_Y

#define HS_D_ABR		HS_D_END + HW_D_END + H_DIFF
#define VS_D_ABR		VS_D_END 
#define HW_D_ABR		45
#define VW_D_ABR		NB_Y

#define H_D_MAX			HS_D_DMI + HW_D_DMI + H_DIFF
#define V_D_MAX			VS_D_END + VW_D_END + V_DIFF

/*-----------------------------------------------------------------------*/

#endif /* h_btmrc */

/* btmrc.h */
